﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CYTS.Aoyou.Framework.Config;

namespace CYTS.Aoyou.Framework.Database
{
    /// <summary>
    /// 数据库操作适配器
    /// </summary>
    public class DataAdapterBase
    {
        protected Dictionary<string, string> DicDBConnection = new Dictionary<string, string>();

        protected DataAdapterBase(DBProvider provider)
        {
            foreach (var conn in provider.DBConnections)
            {
                DicDBConnection[conn.Name] = conn.Connection;
            }
        }
    }
}
